//---------------------------------
// LISTAS

def roman = ['I','II','III','IV','V']

assert roman[4] == 'V'

// Expandign list
roman[5] = 'VI'

assert roman.size() == 6

roman[8] = 'VIII'

// Ocupa todo aunque no tengan valor
assert roman.size() == 9

assert roman[7] == null

print roman

//---------------------------------
// MAPAS

def http = [
100 : 'CONTINUE',
200 : 'OK',
400 : 'BAD REQUEST' ]

println ""
http.each { key,value ->
    println "${key} -> ${value}"
}

assert http[200] == 'OK'
http[500] = 'INTERNAL SERVER ERROR'
assert http.size() == 4